home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15345 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: lantana.singnet.com.sg!usenet
  2. From: ratti@singnet.com.sg (Utsav "Woodstock" Ratti)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Schildt <- Advanced Books
  5. Date: Thu, 18 Apr 1996 03:47:02 GMT
  6. Organization: Singapore Telecom Internet Service
  7. Message-ID: <4l4hjl$90g@lantana.singnet.com.sg>
  8. References: <8BEB557.02C7003127.uuout@sourcebbs.com> <829785971snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: ts900-1422.singnet.com.sg
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
  13.  
  14. >>The only book that I know of that uses the notorious void main(void) is
  15. >>his "Teach Yourself C" book.  But he only uses this for the first half
  16. >>of the book.  This is only because he doesn't want the reader to be
  17. >>overwhelmed with all the data types and other things until he has a
  18. >>chance to explain how functions return values and pass arguments.
  19.  
  20. >Which of course is an argument against void main(void). If he wanted to
  21. >avoid explicit types he could have written the well-defined:
  22.  
  23. >main()
  24. >{
  25. >}
  26.  
  27. >Instead he writes illegal code in addition to introducing one of the
  28. >stranger types that C has.
  29.  
  30. <<stuff deleted>>
  31.  
  32. >I'll stress again that I'm only commenting on Schildt's books about C.
  33. >Given a subject he understands he could write an excellent book (and
  34. >probably already has).
  35.  
  36. I'm new to C, and happen to be using Shildt's "Teach Yourself C" as my
  37. tutorial. I'm about a fifth through the book and have never come
  38. across any declaration of void main(void). Maybe I'll find it later.
  39. Point is, as a beginner I really like this book. It's clear, concise,
  40. and easy to understand.
  41.  
  42. And like you say, I'm taking what he teaches on trust -- for now.
  43.  
  44.  
  45. Utsav Ratti
  46. E-mail: ratti@singnet.com.sg
  47. HomePage: http://www.singnet.com.sg/~ratti
  48. United World College of South East Asia, Singapore
  49.  
  50.